package com.soft3.yxq.generator.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 产品表
 * </p>
 *
 * @author yxq
 * @since 2024-12-20
 */
@ApiModel(value = "Product对象", description = "产品表")
public class Product implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "product_id", type = IdType.AUTO)
    private Integer productId;

    @ApiModelProperty("产品名称")
    private String productName;

    @ApiModelProperty("产品标题")
    private String productTitle;

    @ApiModelProperty("原价")
    private BigDecimal productPrice;

    @ApiModelProperty("促销价")
    private BigDecimal productSalePrice;

    @ApiModelProperty("创建日期")
    private LocalDateTime productCreateDate;

    @ApiModelProperty("类别id")
    private Integer productCategoryId;

    @ApiModelProperty("是否可用")
    private Boolean productIsenabled;

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getProductTitle() {
        return productTitle;
    }

    public void setProductTitle(String productTitle) {
        this.productTitle = productTitle;
    }

    public BigDecimal getProductPrice() {
        return productPrice;
    }

    public void setProductPrice(BigDecimal productPrice) {
        this.productPrice = productPrice;
    }

    public BigDecimal getProductSalePrice() {
        return productSalePrice;
    }

    public void setProductSalePrice(BigDecimal productSalePrice) {
        this.productSalePrice = productSalePrice;
    }

    public LocalDateTime getProductCreateDate() {
        return productCreateDate;
    }

    public void setProductCreateDate(LocalDateTime productCreateDate) {
        this.productCreateDate = productCreateDate;
    }

    public Integer getProductCategoryId() {
        return productCategoryId;
    }

    public void setProductCategoryId(Integer productCategoryId) {
        this.productCategoryId = productCategoryId;
    }

    public Boolean getProductIsenabled() {
        return productIsenabled;
    }

    public void setProductIsenabled(Boolean productIsenabled) {
        this.productIsenabled = productIsenabled;
    }

    @Override
    public String toString() {
        return "Product{" +
            "productId = " + productId +
            ", productName = " + productName +
            ", productTitle = " + productTitle +
            ", productPrice = " + productPrice +
            ", productSalePrice = " + productSalePrice +
            ", productCreateDate = " + productCreateDate +
            ", productCategoryId = " + productCategoryId +
            ", productIsenabled = " + productIsenabled +
        "}";
    }
}
